oxenstored: handling of domain conflict-credit
authorThomas Sanders <thomas.sanders@citrix.com>
Tue, 14 Mar 2017 12:15:52 +0000 (12:15 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 28 Mar 2017 12:07:04 +0000 (13:07 +0100)
commit3efdade7a419a2d9e6a5c64af26df1993732eab4
treef805fa2933f838528133fdcf0e1920373f5cdd9b
parent312d362398036cb4204330ef1cbf5f48ed9dfe05
oxenstored: handling of domain conflict-credit

This commit gives each domain a conflict-credit variable, which will
later be used for limiting how often a domain can cause other domain's
transaction-commits to fail.

This commit also provides functions and data for manipulating domains
and their conflict-credit, and checking whether they have credit.

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Reviewed-by: Jonathan Davies <jonathan.davies@citrix.com>
Reviewed-by: Christian Lindig <christian.lindig@citrix.com>
tools/ocaml/xenstored/connection.ml
tools/ocaml/xenstored/define.ml
tools/ocaml/xenstored/domain.ml
tools/ocaml/xenstored/domains.ml
tools/ocaml/xenstored/oxenstored.conf.in
tools/ocaml/xenstored/transaction.ml
tools/ocaml/xenstored/xenstored.ml